package com.xmh.datasource.demo.service;

import com.xmh.datasource.demo.dao.ManRepository;
import com.xmh.datasource.demo.entity.ManEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ManServiceImpl implements ManService {

    @Autowired
    private ManRepository manRepository;

    @Override
    public List<ManEntity> getSomeData() {
        return this.manRepository.findAll();
    }
}
